<?php

	require_once getcwd().'/models/DayShot.php';


	class ShotDayRepo {
	
		public $imgid;
		public $src;
		public $description;
		public $city;
		public $country;
		public $date;
		public $useruid;
		public $tag_first; public $tag_second; public $tag_third;
	
		public function CreateFromDayShot(DayShot $dshot){
			
			$this->description = $dshot->description;
			$location = $dshot->localisation;
			$this->city = $location->city;
			$this->country = $location->country;
			$this->useruid = $dshot->uid;
			$this->date = $dshot->date;
			$this->src = $dshot->imgSrc;	
			$this->imgid = $dshot->uid;
			$this->tag_first = $dshot->key_first;
			$this->tag_second = $dshot->key_second;
			$this->tag_third = $dshot->key_third;
			
		}
	}


?>